]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Hide user menu and a11y menu in the screen lock
authorGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 16 Aug 2012 17:02:31 +0000 (19:02 +0200)
committerGiovanni Campagna <gcampagna@src.gnome.org>
Thu, 16 Aug 2012 20:42:40 +0000 (22:42 +0200)
This is a temporary patch. The user menu button needs to move to
the left, and the a11y menu in some cases needs to be hidden outside
of the screen lock too.

https://bugzilla.gnome.org/show_bug.cgi?id=681143

js/ui/status/accessibility.js
js/ui/userMenu.js

index 9cdc625312af8b95f531dd82b1ee0f684ae5fb52..a2409f67c1a5f08b677c3996d4cf3f732bd8b73f 100644 (file)
@@ -76,7 +76,7 @@ const ATIndicator = new Lang.Class({
     },
 
     setLockedState: function(locked) {
-        this.menu.setSettingsVisibility(!locked);
+        this.actor.visible = !locked;
     },
 
     _buildItemExtended: function(string, initial_value, writable, on_set) {
index 2f743015f190086fe21de5f018ff2b82dde62ca8..08d09a594212ed4e681c82eb8335a3b84ebc9247 100644 (file)
@@ -540,9 +540,7 @@ const UserMenuButton = new Lang.Class({
     },
 
     setLockedState: function(locked) {
-        if (locked)
-            this.menu.close();
-        this.actor.reactive = !locked;
+        this.actor.visible = !locked;
     },
 
     _onDestroy: function() {